package com.gitee.kenewstar.migration.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.kenewstar.migration.constants.Const;
import com.gitee.kenewstar.migration.core.MigrationCode;
import com.gitee.kenewstar.migration.core.MigrationTenantId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author kenewstar
 */
@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "himp_template_header", schema = Const.HZERO_IMPORT)
public class TemplateHeader extends CommonDto {

    @TableId(type = IdType.AUTO)
    private Long id;
    @MigrationCode
    @ExcelProperty("模板编码")
    private String templateCode;
    private String templateName;
    private Integer enabledFlag;
    private String templateType;
    private String prefixPatch;
    private String description;
    private String templateUrl;
    @MigrationTenantId
    @ExcelProperty("租户ID")
    private Long tenantId;
    private Integer fragmentFlag;
    private Integer batchCheckFlag;
    private String parseMode;
    private String fileFormat;
}
